﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace MP3
{
	/// <summary>
	/// Interaction logic for PlayList.xaml
	/// </summary>
	public partial class PlayList : Window
	{
        List_Operations options;
		public PlayList()
		{
			this.InitializeComponent();
			
			// Insert code required on object creation below this point.
            options = new List_Operations();
		}

        private void button_add_Click(object sender, RoutedEventArgs e)
        {
            options.load_files(ref listBox_files);
        }

        private void delete_button_Click(object sender, RoutedEventArgs e)
        {
            options.delete_files(ref listBox_files);
        }

        private void upper_button_Click(object sender, RoutedEventArgs e)
        {
            options.upper_in_list(ref listBox_files);
        }

        private void lower_button_Click(object sender, RoutedEventArgs e)
        {
            options.lower_in_list(ref listBox_files);
        }

        private void save_button_Click(object sender, RoutedEventArgs e)
        {
            options.save_list(listBox_files);
        }

        private void load_button_Click(object sender, RoutedEventArgs e)
        {
            options.load_list(ref listBox_files);
        }
	}
}